using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using TidhiGanitam.DataModel;

namespace TidhiGanitamControls
{
    public partial class ctrlRasiOperationControl : UserControl
    {
        private bool m_SideLineVisible = true;
        private bool m_BorderVisible = false;
        private Rasi m_TopValue = new Rasi();
        private Rasi m_BottomValue = new Rasi();
        private string m_OpString = string.Empty;

        [DisplayName("Border Visible")]
        public bool BorderVisible
        {
            get
            { return m_BorderVisible; }
            set
            {
                m_BorderVisible = value;
                Refresh();
            }
        }
        [DisplayName("Separationline Visible")]
        public bool SeparationLineVisible
        {
            get
            { return m_SideLineVisible; }
            set
            { 
                m_SideLineVisible = value;
                Refresh();
            }
         }
        public ctrlRasiOperationControl()
        {
            InitializeComponent();
        }
        protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
        }
        protected override void OnPaint(PaintEventArgs e)
        {
            lnSideLine2.Visible = m_SideLineVisible || m_BorderVisible;
            lnTopLine.Visible = lnBottomLine.Visible =
                lnSideLine1.Visible = m_BorderVisible;
            base.OnPaint(e);
        }
    }
}